package com.atgouwu.mall.product.service;

import com.atgouwu.mall.product.vo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atgouwu.mall.common.utils.PageUtils;
import com.atgouwu.mall.product.entity.SkuInfoEntity;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author heran
 * @email sunlightcs@gmail.com
 * @date 2024-02-22 15:17:48
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;

    List<SkuInfoEntity> bannerList(String sortField, Integer limit);

    List<SkuInfoEntity> todayRecommend(String sortField, Integer limit);

    List<SkuInfoEntity> hotSellList(String rankType, Integer limit);

    List<SkuInfoEntity> likeList(String sortField, Integer limit);

    List<SkuInfoEntity> floorList(List<Long> categoryIds, Integer limit);

    List<Map<String, Object>> floorList(String categoryIds, Integer limit);

}

